package com.zhika.zishi.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.View;

import com.zhika.zishi.fragments.StrategyFragment;

import java.util.ArrayList;

/**
 * Created by shi-02 on 2015/4/9.
 */
public class StrategyFragmentAdapter extends FragmentStatePagerAdapter {

    private ArrayList<StrategyFragment> strategyFragmentList;

    public StrategyFragmentAdapter(FragmentManager fragmentManager,ArrayList<StrategyFragment> strategyFragmentList){
        super(fragmentManager);

        this.strategyFragmentList = strategyFragmentList;
    }

    @Override
    public Fragment getItem(int i) {
        return strategyFragmentList.get(i);
    }

    @Override
    public int getCount() {
        return strategyFragmentList.size();
    }
}
